﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage1.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" Title="Kết Quả Tìm Kiếm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="CSS/home.css" rel="stylesheet" type="text/css" />
    <link href="CSS/search.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="clearfix">
<div id="left-pane">
    <asp:Label ID="lblInfo" runat="server"></asp:Label>
        
            
                <asp:Repeater ID="rptRes" runat="server">
                <ItemTemplate>
                    <div id="search-item-wrapper" class="clearfix">
                    <div class="image">
                    <img alt="" width="220" height="138" src='<%#Eval("HinhDaiDien") %>' /></div>
                    <div class="resinfo">
                    <p class="tennhahang"><a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang")%></a></p>
                    <p class="views">
                        <span>Lượt xem: <%#Eval("LuotXem") %></span><span>Lượt bình luận: <%#Eval("LuotBinhLuan") %></span><span>Giảm giá: 10%</span>
                    </p>
                    <p class="diachi"><%#Eval("DiaChi")%></p>
                    <p class="mota"><%#Eval("MoTa") %></p>
                    </div>
                    <div class="detail">
                        <a href='<%#"Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'>Chi tiết</a>
                    </div>
                </div>
                </ItemTemplate>
                
            </asp:Repeater>

</div>
<div id="right-pane">
    <div id="hot-news">
        <div id="header-bg">
        <span>Cẩm nang ẩm thực</span>
        </div>
        <div id="hot-news-line"></div>
        <div id="hot-news-content">
                <ul>
                    <asp:Repeater ID="rptTopHotNews" runat="server">
                <ItemTemplate>
                    <li>
                        <div class="clearfix">
                            <div id="hot-news-content_img">
                               <div class="thumbnailList1"> <img  alt=""  src='<%# Eval("HinhDaiDien") %>' /></div>
                            </div>
                            <div id="hot-news-content_right-wrapper">
                                <div>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"chi-tiet-tin.aspx?BaiVietID="+Eval("BaiVietID") %>' Text='<%#Eval("TieuDe") %>'></asp:HyperLink>
                                </div>
                                <div style="margin-bottom:0;position:absolute;bottom:0;right:0">
                                    <img alt="" src="Images/icon_date.jpg" /><span style="margin-right:8px;margin-left:5px;"><%#Eval("NgayTao") %></span>
                                <span style="margin-right:8px;">Đăng bởi</span><a class="username" href='<%#"User/thong-tin-thanh-vien.aspx?UserID="+Eval("UserID") %>'><%#Eval("TenHienThi") %></a> 
                                </div>
                            </div>
                        </div>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
                </ul>
            
        </div>
    </div>
    <div style="margin-top:5px;">
        <img alt="" src="Images/Right-banner/right-bn1.jpg" width="288" />
    </div>
    <div id="top-5-res">
        <div id="top-5-res-header">
            <p>Top điểm đến nổi bật</p>
        </div>
        <div id="top-5-res-content">
            <asp:Repeater ID="Repeater2" runat="server">
                <ItemTemplate>
                    <div id="item-wrapper">
                    <div style="margin-bottom:8px;padding-left:5px;padding-top:8px;" id="res-title">
                        <a id="A1" runat="server" href='<%#"~/Nha-hang-chi-tiet.aspx?NhaHangID="+Eval("NhaHangID") %>'><%#Eval("TenNhaHang") %></a>
                        </div>
                    <div class="clearfix" style="border-bottom:solid thin #f5f4f4;padding-bottom:12px;padding-left:5px">
                        <div style="float:left;margin-top:2px;">
                        <span>
                            <asp:Rating ID="Rating1" runat="server" StarCssClass="ratingEmpty" WaitingStarCssClass="ratingSaved" EmptyStarCssClass="ratingEmpty" FilledStarCssClass="ratingFilled" CurrentRating='<%#Eval("RateValue") %>' ReadOnly="true">
                            </asp:Rating>
                        </span></div>
                        <div style="float:left"><span style="margin-left:20px;font-size:11px;color:#5f5f62;margin-top:0"> Lượt xem : <asp:Label ID="lblTop5ResViews" runat="server" Text='<%#Eval("LuotXem") %>' ForeColor="#5f5f62" Font-Size="11px"></asp:Label></span></div>
                       <div style="float:left"> <span style="margin-left:20px;font-size:11px;color:#5f5f62;">Bình luận :  
                            <asp:Label ID="lblTop5ResComment" runat="server" Text='<%#Eval("LuotBinhLuan") %>' Font-Size="11px"></asp:Label></span></div>
                    </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div id="facebook-plugin" style="margin-top:5px;">
        <div class="fb-like-box" data-href="http://www.facebook.com/Phoamthuc.net" data-width="288" data-show-faces="true" data-border-color="#dfdfdf" data-stream="false" data-header="true"></div>
    </div>
</div>
</div>
<script type="text/javascript">
         $(".thumbnailList1 img").MyThumbnail({
             thumbWidth: 40,
             thumbHeight: 40,
             imageDivClass: "myPic"
         });
        
    </script>
</asp:Content>

